import { Component, OnInit, Optional, Self } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { AbstractConfigService } from 'src/app/services/abstract-config.service';
import { ConfigService } from 'src/app/services/config.service';
import {
  LogConfigService,
  logConfigFactory,
} from 'src/app/services/log-config.service';
import { LogService } from 'src/app/services/log.service';

@Component({
  selector: 'app-a',
  templateUrl: './a.component.html',
  styleUrls: ['./a.component.scss'],
  providers: [LogService],
})
export class AComponent implements OnInit {
  constructor(private router: Router, private route: ActivatedRoute) {}

  ngOnInit(): void {}

  handleGo() {
    this.router.navigate(['b', { name: 'ggg' }], {
      relativeTo: this.route.parent,
    });
  }
}
